#include "gamehistory.h"
#include <QDateTime>

GameHistory::GameHistory() {}

QString GameHistory::getDateString() const {
    QDateTime datetime = QDateTime::fromSecsSinceEpoch(date);
    return datetime.toString(Qt::ISODate);
}

QString GameHistory::getKDAString() const {
    return QString("%1/%2/%3").arg(kill).arg(death).arg(assist);
}
